//
//  ResourceTableViewCell.m
//  CareGiver
//
//  Created by Guillermo Moral on 8/14/14.
//  Copyright (c) 2014 Humana. All rights reserved.
//

#import "ResourceTableViewCell.h"

@implementation ResourceTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
    }
    return self;
}

-(void)configureTitle:(NSString*)title summary:(NSString*)summary state:(NSString*)state distance:(NSString*)distance {
    _lbl_resourceTitle.text = title;
    _lbl_resourceSummary.text = summary;
    _lbl_resourceState.text = state;
    _lbl_resourceDistance.text = distance;
}

- (void)awakeFromNib
{
    [self configureStyle];
}

-(void)configureStyle {
    
}

+(NSString*)cellIdentifier {
    return @"ResourceCell";
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

}

- (void)drawRect:(CGRect)rect
{
    if (self.drawLineBottom) {
        CGContextRef context = UIGraphicsGetCurrentContext();
        CGContextBeginPath(context);
        CGContextMoveToPoint(context, 0.0f, self.frame.size.height-2);
        CGContextAddLineToPoint(context,0.0f,self.frame.size.width);
        CGContextSetLineWidth(context, 640);
        CGContextClosePath(context);
        // AMXGrayColor
        CGContextSetRGBStrokeColor(context,0.898,0.898,0.898,1);
        CGContextStrokePath(context);

    }
}
@end
